<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Simulateur Intersections: Utils::Point Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Simulateur Intersections
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>Utils</b>      </li>
      <li class="navelem"><a class="el" href="class_utils_1_1_point.html">Point</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Utils::Point Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Utils::Point" -->
<p><a href="class_utils_1_1_point-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af875b3bcb53012e9559a16813a10bc33"></a><!-- doxytag: member="Utils::Point::Point" ref="af875b3bcb53012e9559a16813a10bc33" args="(qreal x, qreal y)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Point</b> (qreal x, qreal y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf08a652e650906511783153ae153ba6"></a><!-- doxytag: member="Utils::Point::Point" ref="acf08a652e650906511783153ae153ba6" args="(const QPoint &amp;point)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Point</b> (const QPoint &amp;point)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a177a9e281c5ae1adc9fb69a5305b26d6"></a><!-- doxytag: member="Utils::Point::Point" ref="a177a9e281c5ae1adc9fb69a5305b26d6" args="(const QPointF &amp;point)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Point</b> (const QPointF &amp;point)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98480456f3492bea720c741231777519"></a><!-- doxytag: member="Utils::Point::operator/" ref="a98480456f3492bea720c741231777519" args="(qreal miseAEchelle) const " -->
<a class="el" href="class_utils_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (qreal miseAEchelle) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d48f0533b588f4820430e7ec9812ee8"></a><!-- doxytag: member="Utils::Point::operator*" ref="a0d48f0533b588f4820430e7ec9812ee8" args="(qreal miseAEchelle) const " -->
<a class="el" href="class_utils_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (qreal miseAEchelle) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05757c12e9ef16e8ab7aeb4d93c0f491"></a><!-- doxytag: member="Utils::Point::operator&#45;" ref="a05757c12e9ef16e8ab7aeb4d93c0f491" args="(const Point &amp;point) const " -->
<a class="el" href="class_utils_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22255f2b418abe0b6c9176b573aa8261"></a><!-- doxytag: member="Utils::Point::operator+" ref="a22255f2b418abe0b6c9176b573aa8261" args="(const Point &amp;point) const " -->
<a class="el" href="class_utils_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e65d5e32b95b18c8591a5372e6ca924"></a><!-- doxytag: member="Utils::Point::operator+=" ref="a3e65d5e32b95b18c8591a5372e6ca924" args="(const Point &amp;point)" -->
const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+=</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a72633e27ad92992309979c264e11b0"></a><!-- doxytag: member="Utils::Point::operator&#45;=" ref="a8a72633e27ad92992309979c264e11b0" args="(const Point &amp;point)" -->
const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-=</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ce3ed43ac1e32b95d24d9911c0bf237"></a><!-- doxytag: member="Utils::Point::operator/=" ref="a2ce3ed43ac1e32b95d24d9911c0bf237" args="(qreal miseAEchelle)" -->
const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (qreal miseAEchelle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a088094d5e6b1588e80b95a078fa60edc"></a><!-- doxytag: member="Utils::Point::operator*=" ref="a088094d5e6b1588e80b95a078fa60edc" args="(qreal miseAEchelle)" -->
const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator*=</b> (qreal miseAEchelle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af31903d7c66bfd883db65febcb502e99"></a><!-- doxytag: member="Utils::Point::operator*" ref="af31903d7c66bfd883db65febcb502e99" args="(const Point &amp;point) const " -->
qreal&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a5017a89f7858a49456b44a7f9210fd"></a><!-- doxytag: member="Utils::Point::operator&lt;" ref="a3a5017a89f7858a49456b44a7f9210fd" args="(const Point &amp;point) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82c0a5b8a72d4035a0bf4fa46764d6c1"></a><!-- doxytag: member="Utils::Point::operator==" ref="a82c0a5b8a72d4035a0bf4fa46764d6c1" args="(const Point &amp;point) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_utils_1_1_point.html#a03c40b27b79dde2c1196c9b9491d9a1e">angle</a> (const bool retablirEntre0et360=false) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2da1657f746f9b09b2d0af8e6f5471a4"></a><!-- doxytag: member="Utils::Point::norme" ref="a2da1657f746f9b09b2d0af8e6f5471a4" args="() const " -->
qreal&#160;</td><td class="memItemRight" valign="bottom"><b>norme</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_utils_1_1_point.html#a68e3c0f8579437673002a93aa8a3d33c">normaliser</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a87f367ca1dc5a1e93d894601ae7ba3d0"></a><!-- doxytag: member="Utils::Point::mult" ref="a87f367ca1dc5a1e93d894601ae7ba3d0" args="(const Point &amp;point) const " -->
qreal&#160;</td><td class="memItemRight" valign="bottom"><b>mult</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acedfc402a9d1f7cc65b32d5cb70a2870"></a><!-- doxytag: member="Utils::Point::multcroisee" ref="acedfc402a9d1f7cc65b32d5cb70a2870" args="(const Point &amp;point) const " -->
qreal&#160;</td><td class="memItemRight" valign="bottom"><b>multcroisee</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point) const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_utils_1_1_point.html#aefadd27c75c4c2e150fa896a08f320bb">retablirEntre0et360</a> (const qreal valeur)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_utils_1_1_point.html#ad17fdb25d5ed9a22121df19e1eeff042">retablirEntre0et180</a> (const qreal valeur)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5cdc9db43bc062f0747c5904c3398a4b"></a><!-- doxytag: member="Utils::Point::angle" ref="a5cdc9db43bc062f0747c5904c3398a4b" args="(const Point &amp;point1, const Point &amp;point2)" -->
static qreal&#160;</td><td class="memItemRight" valign="bottom"><b>angle</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point1, const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a037534f7e970dc4f42aac36247cc0550"></a><!-- doxytag: member="Utils::Point::angleSigne" ref="a037534f7e970dc4f42aac36247cc0550" args="(const Point &amp;point1, const Point &amp;point2)" -->
static qreal&#160;</td><td class="memItemRight" valign="bottom"><b>angleSigne</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point1, const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6397d431beba93e46be3524d38a915d"></a><!-- doxytag: member="Utils::Point::angleEntreDeuxPoints" ref="ae6397d431beba93e46be3524d38a915d" args="(const Point &amp;point1, const Point &amp;point2)" -->
static qreal&#160;</td><td class="memItemRight" valign="bottom"><b>angleEntreDeuxPoints</b> (const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point1, const <a class="el" href="class_utils_1_1_point.html">Point</a> &amp;point2)</td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a03c40b27b79dde2c1196c9b9491d9a1e"></a><!-- doxytag: member="Utils::Point::angle" ref="a03c40b27b79dde2c1196c9b9491d9a1e" args="(const bool retablirEntre0et360=false) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qreal Utils::Point::angle </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>retablirEntre0et360</em> = <code>false</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Donne la valeur de l'angle par rapport à l'origine de ce point en degrés </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">retablirEntre0et360</td><td>Si vrai, l'angle est entre 0 et 360, sinon l'angle est rétabli entre 0 et 180 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a68e3c0f8579437673002a93aa8a3d33c"></a><!-- doxytag: member="Utils::Point::normaliser" ref="a68e3c0f8579437673002a93aa8a3d33c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Utils::Point::normaliser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ramener la norme du point à 1 </p>

</div>
</div>
<a class="anchor" id="ad17fdb25d5ed9a22121df19e1eeff042"></a><!-- doxytag: member="Utils::Point::retablirEntre0et180" ref="ad17fdb25d5ed9a22121df19e1eeff042" args="(const qreal valeur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qreal Utils::Point::retablirEntre0et180 </td>
          <td>(</td>
          <td class="paramtype">const qreal&#160;</td>
          <td class="paramname"><em>valeur</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rétablit la valeur de l'angle entre 0 et 180 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">valeur</td><td>Angle en degrés </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aefadd27c75c4c2e150fa896a08f320bb"></a><!-- doxytag: member="Utils::Point::retablirEntre0et360" ref="aefadd27c75c4c2e150fa896a08f320bb" args="(const qreal valeur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qreal Utils::Point::retablirEntre0et360 </td>
          <td>(</td>
          <td class="paramtype">const qreal&#160;</td>
          <td class="paramname"><em>valeur</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rétablit la valeur de l'angle entre 0 et 360 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">valeur</td><td>Angle en degrés </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>utils/<a class="el" href="point_8h_source.html">point.h</a></li>
<li>utils/point.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 1 2011 16:12:42 for Simulateur Intersections by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
